﻿@model bool
@{
    ViewBag.Title = "Reset Password";
}

<h2>Reset Password</h2>

@if(Model)
{
    using (Html.BeginForm("ResetPassword", "Account", FormMethod.Post))
    {
        <fieldset class="edit">
            <legend></legend>
            <h3>Please answer the security question.</h3>
            <div class="editor-label">
                <label>Question </label>
            </div>
            <div class="editor-field">
                <label>@ViewBag.Message</label>
            </div>
            <div class="editor-label">
                <label>Answer </label>
            </div>
            <div class="editor-field">
                <label>@Html.TextBox("Answer")</label>
            </div>
            <input type="hidden" name="UserName" value="@ViewBag.UserName" />
            <input type="hidden" name="Email" value="@ViewBag.Email" />

            <div class="editor-btn"><input type="submit" value="Submit" /></div>
            <div style="margin-left:150px;margin-top:20px;color:red;clear:both;">@ViewBag.Error</div>
        </fieldset>
    }
}
else
{
    <p>"There is no record for " + @ViewBag.Message +". Please check your email address."</p>
}
